package com.diors.game.engine.arpg.object;

import com.diors.game.engine.arpg.fight.attr.object.AttrObject;
import com.diors.game.engine.arpg.fight.attr.object.IAttr;
import com.diors.game.engine.arpg.scene.entity.ISceneObject;
import com.diors.game.engine.arpg.scene.entity.SceneObject;


/**
 * 抽象对象(角色,NPC,矿物等等)
 * @author	darren.ouyang
 * @data	2013-9-25
 */
public class AbstractObject implements ISceneObject, IAttr
{
	
	private long id;
	
	/* 场景对象 */
	private SceneObject sceneObject;
	
	/* 战斗属性对象 */
	private AttrObject attrObject;
	
	
	
	public AbstractObject()
	{
		attrObject = new AttrObject();
	}

	@Override
	public SceneObject getSceneObject() 
	{
		return sceneObject;
	}

	@Override
	public void setSceneObject(SceneObject sceneObject) 
	{
		this.sceneObject = sceneObject;
	}

	@Override
	public AttrObject getAttr() 
	{
		return attrObject;
	}

	public long getId() 
	{
		return id;
	}

	public void setId(long id) 
	{
		this.id = id;
	}
}
